var myApp = new Framework7({
	modalTitle: '哇吖旅行',
	init:false,
    animateNavBackIcon: false,
    precompileTemplates: true,
    template7Pages: true,
});

// Export selectors engine
var $$ = Dom7;

// Add main View
var mainView = myApp.addView('.view-main', {
    dynamicNavbar: true,    
});

//URLList
var url_get_city = "http://api.wayatrip.com/city/getcity";
var url_get_index = "http://api.wayatrip.com/index/index"; 
var url_get_selfplayingmethodlist = "http://api.wayatrip.com/ziying/getlist";
var url_get_scopelist = "http://api.wayatrip.com/jingdian/getlist";
var url_get_playingmethodlist = "http://api.wayatrip.com/wanfa/getlist";
var url_get_playingmethodtype = "http://api.wayatrip.com/wanfa/gettype";
var url_get_playingmethoddetail = "http://api.wayatrip.com/wanfa/detail";
var url_get_playingmethoddetail_map = "http://api.wayatrip.com/wanfa/getmap";
var url_get_selfplaydetaildesc = "http://api.wayatrip.com/ziying/getDesc";
var url_get_scopetype = "http://api.wayatrip.com/jingdian/gettag";
var url_get_scopedetail = "http://api.wayatrip.com/jingdian/detail";
var url_get_selfplayingmethoddetail = "http://api.wayatrip.com/ziying/detail";
var url_get_selfbaseinfo = "http://api.wayatrip.com/user/index";
var url_post_selfbaseinfo_submit = "http://api.wayatrip.com/user/edituserinfo";
var url_get_code = "http://api.wayatrip.com/ucenter/checkcode";
var url_get_countrycode = "http://api.wayatrip.com/ucenter/phone_area_code";
var url_post_touristreg = "http://api.wayatrip.com/ucenter/userreg";
var url_post_touristlogin = "http://api.wayatrip.com/ucenter/login";
var url_post_touristlogout = "http://api.wayatrip.com/ucenter/logout";
var url_post_partnerreg = "http://api.wayatrip.com/ucenter/guiderreg";
var url_get_myorder = "http://api.wayatrip.com/user/myorderlist";
var url_get_mycomments = "http://api.wayatrip.com/user/comments";
var url_get_addorder = "http://api.wayatrip.com/pay/addorder";
var url_get_getbookinginfo = "http://api.wayatrip.com/pay/getbookinginfo";
var url_get_telcode = "http://api.wayatrip.com/ucenter/sendmsg";

var url_get_orderdetail = "http://api.wayatrip.com/user/orderdetail";
var url_get_myorderdetail = "http://api.wayatrip.com/user/myorderdetail";
var url_post_refundorder = "http://api.wayatrip.com/api.wayatrip.com/waya_api/index.php/user/shensu";
var url_post_finishorder = "http://api.wayatrip.com/api.wayatrip.com/waya_api/index.php/user/finish";
var url_post_dealorder = "http://api.wayatrip.com/user/dealorder";
var url_get_orderlist = "http://api.wayatrip.com/user/orderlist";
var url_get_chat = "http://api.wayatrip.com/user/chat";
var url_post_addchat= "http://api.wayatrip.com/user/addchat";
var url_get_selfplayingmethodtype = "http://api.wayatrip.com/ziying/gettype";
var url_get_checklogin = "http://api.wayatrip.com/ucenter/checklogin";
var url_post_mymsg = "http://api.wayatrip.com/user/getchatgroup";
var url_post_sendmsg = "http://api.wayatrip.com/user/addchat";
var url_get_account = "http://api.wayatrip.com/user/editAccount";
var url_get_bookinginfo = "http://api.wayatrip.com/pay/getbookinginfo";
var url_get_imageswall="http://api.wayatrip.com/wanfa/getimagewall";
var url_post_isscenicremarked="http://api.wayatrip.com/user/isscenicremarked";
var url_post_addscoperemark = "http://api.wayatrip.com/user/addsceniccomment";
var url_get_alipay = "http://api.wayatrip.com/pay/alipay";

var url_post_getidentity = "http://api.wayatrip.com/user/getidentity";
var url_post_checkidentity = "http://api.wayatrip.com/user/checkidentity";
var url_post_addcomment = "http://api.wayatrip.com/user/addcomment";

var url_post_validatemobile = "http://api.wayatrip.com/user/validatemobile";
var url_post_validateemail = "http://api.wayatrip.com/user/validateemail";
var url_post_sendemailcode = "http://api.wayatrip.com/user/sendemailcode";
var url_post_editpassword = "http://api.wayatrip.com/user/editpassword"


//全局变量
var global_city = '巴黎';
var global_cityid = 1;
var global_login_state = false;
var global_login_role = '';

//分页变量
var playingmenthodpageitem=10;
var scopepageitem=10;
var selfplaymenthodpageitem=10;
